<?xml version="1.0"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.stylusstudio.com/xquery">
<xsl:output encoding="UTF-8" method="xml"/>
<xsl:output encoding="UTF-8" method="xml"/>
<xsl:output encoding="UTF-8" method="xml"/>
<xsl:output encoding="UTF-8"/>
<xsl:param name="img_url" select="'http://localhost:8091/SilkNetMap/images/icons/'"/>
    <xsl:template match="/">
        <html>
            <head/>
            <body bgcolor="#E6E6FA" >
                <div style="text-align: none;">
                    <IMG WIDTH="42" HEIGHT="42" src="{$img_url}{/ROW/image_name}"/>
                  	 <xsl:text>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;</xsl:text><xsl:value-of select="/ROW/type_name"/>
                    <br/>
                    <br/>
                    <span style="font-weight: bold;">
                        <xsl:text>ობიექტის დასახელება:</xsl:text>
                    </span>
                    <xsl:text> </xsl:text>
                    <xsl:value-of select="/ROW/poi_name"/>
                    <xsl:choose>
                        <xsl:when test="/ROW/phone">
                            <div style="text-align: none;">
                                <span style="font-weight: bold;">
                                    <xsl:text>ტელეფონის №:</xsl:text>
                                </span>
                                <span style="font-weight: normal;">
                                    <xsl:value-of select="/ROW/phone"/>
                                </span>
                            </div>
                        </xsl:when>
                        <xsl:otherwise>
                            <div style="text-align: none;"/>
                        </xsl:otherwise>
                    </xsl:choose>
                    <xsl:choose>
                        <xsl:when test="/ROW/working_houers">
                            <div style="text-align: none;">
                                <span style="font-weight: bold;">
                                    <xsl:text>სამუშაო საათები: </xsl:text>
                                </span>
                                <span style="font-weight: normal;">
                                    <xsl:value-of select="/ROW/working_houers"/>
                                </span>
                            </div>
                        </xsl:when>
                        <xsl:otherwise>
                            <div style="text-align: none;"/>
                        </xsl:otherwise>
                    </xsl:choose>
                    <xsl:choose>
                        <xsl:when test="/ROW/streetname">
                            <div style="text-align: none;">
                                <span style="font-weight: bold;">
                                    <xsl:text>მისამართი:</xsl:text>
                                    <br/>
                                </span>
                                <xsl:text> </xsl:text>
                                <xsl:choose>
                                    <xsl:when test="/ROW/raion">
                                        <div style="text-align: none;">
                                            <xsl:value-of select="/ROW/raion"/>
                                            <xsl:text>-ის რაიონი, </xsl:text>
                                            <xsl:choose>
                                                <xsl:when test="/ROW/municipalit">
                                                    <div style="text-align: none;"/>
                                                </xsl:when>
                                                <xsl:otherwise>
                                                    <div style="text-align: none;"/>
                                                </xsl:otherwise>
                                            </xsl:choose>
                                            <xsl:value-of select="/ROW/municipalit"/>
                                            <xsl:text>-ის მუნიციპალიტეტი - </xsl:text>
                                        </div>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <div style="text-align: none;"/>
                                    </xsl:otherwise>
                                </xsl:choose>
                                <xsl:value-of select="/ROW/streetname"/>
                                <xsl:choose>
                                    <xsl:when test="/ROW/street_no">
                                        <div style="text-align: none;">
                                            <xsl:text> № </xsl:text>
                                            <xsl:value-of select="/ROW/street_no"/>
                                        </div>
                                    </xsl:when>
                                    <xsl:otherwise>
                                        <div style="text-align: none;"/>
                                    </xsl:otherwise>
                                </xsl:choose>
                            </div>
                        </xsl:when>
                        <xsl:otherwise>
                            <div style="text-align: none;"/>
                        </xsl:otherwise>
                    </xsl:choose>
                </div>
            </body>
        </html>
    </xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2009. Progress Software Corporation. All rights reserved.

<metaInformation>
	<scenarios>
		<scenario default="yes" name="default" userelativepaths="yes" externalpreview="no" url="TestPoint.xml" htmlbaseurl="" outputurl="" processortype="saxon8" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml=""
		          commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator="">
			<advancedProp name="sInitialMode" value=""/>
			<advancedProp name="bXsltOneIsOkay" value="true"/>
			<advancedProp name="bSchemaAware" value="true"/>
			<advancedProp name="bXml11" value="false"/>
			<advancedProp name="iValidation" value="0"/>
			<advancedProp name="bExtensions" value="true"/>
			<advancedProp name="iWhitespace" value="0"/>
			<advancedProp name="sInitialTemplate" value=""/>
			<advancedProp name="bTinyTree" value="true"/>
			<advancedProp name="xsltVersion" value="2.0"/>
			<advancedProp name="bWarnings" value="true"/>
			<advancedProp name="bUseDTD" value="false"/>
			<advancedProp name="iErrorHandling" value="fatal"/>
		</scenario>
	</scenarios>
	<MapperMetaTag>
		<MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no">
			<SourceSchema srcSchemaPath="TestPoint.xml" srcSchemaRoot="ROW" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/>
		</MapperInfo>
		<MapperBlockPosition>
			<template match="/">
				<block path="html/body/div/xsl:choose" x="172" y="252"/>
				<block path="html/body/div/xsl:choose[1]" x="172" y="136"/>
				<block path="html/body/div/xsl:choose[2]" x="212" y="136"/>
				<block path="html/body/div/xsl:choose[2]/xsl:when/div/xsl:choose" x="132" y="136"/>
				<block path="html/body/div/xsl:choose[2]/xsl:when/div/xsl:choose/xsl:when/div/xsl:choose" x="52" y="136"/>
				<block path="html/body/div/xsl:choose[2]/xsl:when/div/xsl:choose[1]" x="92" y="136"/>
			</template>
		</MapperBlockPosition>
		<TemplateContext></TemplateContext>
		<MapperFilter side="source"></MapperFilter>
	</MapperMetaTag>
</metaInformation>
-->